package com.smedi.ismedi.dangeroussourcemanage.api.dto.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 *
 * @author xienannan
 * @date 2021/08/23
 */
@Data
@ApiModel(value = "危险源反参")
public class QueryDangerousSourceListResponse implements Serializable {
    @ApiModelProperty(value = "危险源Id")
    private Long id;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "施工单位id")
    private Long constructionUnitId;

    @ApiModelProperty(value = "施工单位")
    private String constructionUnit;

    @ApiModelProperty(value = "施工状态 [-1:未实施][0:正在实施][1:实施完成]")
    private String constructionStatus;

    @ApiModelProperty(value = "单位工程")
    private String unitEngineering;

    @ApiModelProperty(value = "工程地址")
    private String projectAddress;

    @ApiModelProperty(value = "计划施工时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime planConstructionTime;

    @TableField(value = "计划结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime planEndTime;

    @TableField(value = "危险源对应的库")
    private DangerousSourceLibraryResponse dangerousSourceLibraryResponse;

    @ApiModelProperty(value = "条件搜索下的所有数据id，用于导出所有的excel使用")
    private List<Long> dangerousSourceIds;
}